<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>test</title>
	<script src="js/mui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/fw4wdb.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
//	(function(){
//	 fw4wdb("test",2,{key:'code',index:[{name:{unique:true}}]}).open(function(obj){
//			 obj.put({code:1,name:'aa'});
//			 obj.put({code:2,name:'cc'});
//			 obj.put({code:4,name:'bb'});
//			 obj.put({code:3,name:'dd'});
//			 obj.put({code:5,name:'ee'});
//			 obj.sort = 'prev';
//			 obj.range("name=dd",function(data){
//			 	console.log(data);
//			 });
//			 obj.close();
//	 });
mui.uuid=9;
	 var wdb = mui.wdb("message",1,{key:'id',index:[{type:{unique:true}}]});
	 wdb.open(function(obj){
		for(var i = 0;i<2;i++){
obj.put({
			id:mui.uuid++,
			type:mui.uuid,
			ddd:'s'+mui.uuid,
			"stockCheckDetailss":[
	{
		"planId":mui.uuid+'计划ID',
  		"checkNo":"盘点编号",
  		"tagNo":"标签号",
  		"partId":"零件ID",
  		"partNo":"零件号",
  		"result":"盘点结果(有账有料11/有账无料10/无账有料01)"
	},
	{
  		"checkNo":"盘点编号",
  		"tagNo":mui.uuid+"标签号",
  		"partId":"零件ID",
  		"partNo":"零件号",
  		"result":"盘点结果(有账有料11/有账无料10/无账有料01)"
	},
	{
  		"checkNo":"盘点编号",
  		"tagNo":"标签号",
  		"partId":"零件ID",
  		"partNo":"零件号",
  		"result":"盘点结果(有账有料11/有账无料10/无账有料01)"
	}
]
		});	
		}
//		console.log(obj)
		obj.range("type=s11",function(data){
			console.log(data);
		});
//		obj.clear();
//		obj.each(function(data){
//			console.log(data);
//		});
		obj.close();
	});
//	})();
	</script>
</head>
<body>
</body>
</html>
